package springbook.user.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class SimpleConnectionMaker {
	
	public Connection makeNewConnection() throws ClassNotFoundException, SQLException{
		Class.forName("com.mysql.jdbc.Driver");
		String url = "jdbc:mysql://localhost:3306/spring";
		String dbuser = "springuser";
		String dbpassword = "springpassword";
		Connection c = DriverManager.getConnection(url, dbuser, dbpassword);
		return c;
	}
}
